package cn.ym.ymcc.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
ConfigurationProperties: 读取yml或者bootstrap.yml中的配置，把配置文件中设置数据的值，注入到当前domain里面
 */
@Component
@ConfigurationProperties(prefix = "oss")
@Data
public class AliOSSProperties {
    private String accessid;
    private String accesskey;
    private String endpoint;
    private String bucket;
    private String host;
    private String dir;


}
